  <form  method="get" id="" class="formbody">
        <div id="usual1" class="usual">
                <ul class="seachform1"> 
                <li>
                         <label>学校</label>
                         <select name="school" class="select">
                         	<?php if (!empty($school)){ foreach ( $school as $k=>$v){?>
                         	   <option value="<?php echo $v['id']?>" <?php echo $v['id']==$schoolid?'selected':'';?> ><?php echo $v['name']?></option> 
                         	<?php } }?>
                        </select>
                         
                </li>
                <li>
                     <label>查询时间</label>
                     <input type="text" class="scinput1" name="rc_st" value="<?php echo !empty($rc_st)?$rc_st:"";?>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
                     <i>&nbsp;-&nbsp;</i>
                     <input type="text" class="scinput1" name="rc_et" value="<?php echo !empty($rc_et)?$rc_et:"";?>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
               </li>     
                </ul>   
                <ul class="seachform1">
                    <li class="sarchbtn">
                        <label>&nbsp;</label>
                        <input name="" id="searchBtn" type="submit" class="scbtn" value="查询"/>
                        <input name="" id="resetBtn"  type="reset" class="scbtn1" value="重置"/>
                    </li>
                </ul>  
         </div>
</form>
    <div class="rightinfo" style="width:1000px;margin:0 auto;">
    
 <?php if (!empty($list)){?>
   <form id="" action="" method="post">
    <table class="tablelist">
    	<thead>
    	<tr>
    		<th>排序</th> 
    		<th>统计时间</th>
	        <th>设备id</th>
	        <th>设备名</th> 
	        <th>用户数</th>
	        <th>消费金额<i class="sort" data-order="id"><a href="<?php echo 'dev_stat'.$params.'&order=price_count';?>"><img src="/houtai/images/px.gif"></a></i></th>
	        <th>取水总秒数</th>
	        <th>热水<i class="sort" data-order="id"><a href="<?php echo 'dev_stat'.$params.'&order=t_1';?>"><img src="/houtai/images/px.gif"></a></i></th>
	        <th>冷水<i class="sort" data-order="id"><a href="<?php echo 'dev_stat'.$params.'&order=t_2';?>"><img src="/houtai/images/px.gif"></a></i></th>
	        <th>洗衣机</th> 
	        <th>学校名字</th> 
<!-- 	        <th>操作明细</th> -->
        </tr>
        </thead>
        
        <tbody>
        	<?php foreach ($list as $k=>$v){?>
	        <tr>
	            <td><?php echo ++$k;?></td> 
	            <td><?php echo !empty($v['ctime'])?$v['ctime']:'';?></td> 
		        <td><?php echo $v['did'];?></td>
		        <td><?php echo $v['name'];?></td> 
		        <td><?php echo !empty($v['usercount'])?$v['usercount']:0;?></td>
		        <td><font color="red">￥<?php echo !empty($v['price_count'])?$v['price_count']/100:0;?></font></td>
		        <td><?php echo !empty($v['take_sec'])?$v['take_sec']:0;?></td>
		        <td><?php echo !empty($v['t_1'])?$v['t_1']:0;?></td> 
	          	<td><?php echo !empty($v['t_2'])?$v['t_2']:0;?></td> 
	            <td><?php echo !empty($v['t_3'])?$v['t_3']:0;?></td>  
		        <td><?php echo !empty($v['sname'])?$v['sname']:'';?></td>
	        </tr> 
        	<?php }?>
        </tbody>
    </table>
	</form>
   <?php }else{?>
     <span>没有相关信息</span>
   <?php }?> 
   </div>
    
